# -*- coding: utf-8 -*-

"""
@author: Mark Wu
@file: setting.py
@time: 2025/8/2 14:36
"""

import logging
import os
import sys


DIR_BASE = os.path.dirname(os.path.dirname(__file__))
sys.path.append(DIR_BASE)

# log日志输出级别
LOG_LEVEL = logging.DEBUG
STREAM_LOG_LEVEL = logging.DEBUG   # 控制台输出日志级别

# url地址
URL = "http://127.0.0.1:8000"

# 页面超时等待时间
TIMEOUT = 10

# ALLURE
ALLURE_IMG_DIR = os.path.join(DIR_BASE, 'image')


FILE_PATH = {
    'CONFIG': os.path.join(DIR_BASE, 'conf/config.ini'),
    'LOG': os.path.join(DIR_BASE, 'logs'),
}


CLERA_SQL_LIST = [
    "DELETE FROM df_order_orderdetailinfo",
    "DELETE FROM df_order_orderinfo",
    "DELETE FROM df_user_userinfo",
    "DELETE FROM df_cart_cartinfo"
]